package com.softserve.dao;

import java.util.Collection;

import com.softserve.entity.Student;

public interface StudentDAO {

	/**
	 * Adds student.
	 * @param student Student to add.
	 * @return Student ID if saved.
	 */
	Long addStudent(Student student);
	
	/**
	 * Finds student by his id.
	 * @param studentId Id of student to find.
	 * @return Student entity if found.
	 */
	Student getStudent(Long studentId);
	
	/**
	 * Updates student.
	 * @param student Student to update.
	 */
	void updateStudent(Student student);
	
	/**
	 * Deletes student.
	 * @param studentId Id of student to delete.
	 */
	void deleteStudent(Long studentId);
	
	/**
	 * @return All Students.
	 */
	Collection<Student> getAllStudents();
}
